package com.test.demo.constant;

/**
 * redis 存储目录的分层名称
 * @author zx
 * @date 2021-09-03
 */
public enum RedisStorageLayerEnum {
    //详细的redis存储目录分级（测试使用）
    REDIS_TEST("testKey"),
    //用户token存储位置
    USER_TOKEN("sunyard:user:token"),
    //存储websocket对象
    WEB_SOCKET("sunyard:websocket:server"),

    ;

    private String layered;

    RedisStorageLayerEnum(String layered) {
        this.layered = layered;
    }

    public String getLayered() {
        return layered;
    }

    public void setLayered(String layered) {
        this.layered = layered;
    }

    @Override
    public String toString() {
        return "RedisStorageLayerEnum{" +
                "layered='" + layered + '\'' +
                '}';
    }
}
